<%@page import="com.xxb.entity.Type"%>
<%@page import="com.xxb.entity.Product"%>
<%@page import="com.xxb.dao.ProductDao"%>
<%@page import="com.xxb.dao.TypeDao" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String id  = request.getParameter("id");
	Product p = new ProductDao().findByid(Integer.parseInt(id));
	List<Type> typelist = new TypeDao().finAll();
	request.setAttribute("project",p);
	request.setAttribute("typelist",typelist);
	request.getRequestDispatcher("updateproduct.jsp").forward(request,response);
	
%>